/*
 * Copyright 2010 WANdisco, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 */
package com.googlecode.svnj.dav;

import org.apache.jackrabbit.webdav.xml.Namespace;

public interface SVNConstants {

    /* <D:response
     * xmlns:S="http://subversion.tigris.org/xmlns/svn/"
     * xmlns:C="http://subversion.tigris.org/xmlns/custom/"
     * xmlns:V="http://subversion.tigris.org/xmlns/dav/"
     * xmlns:lp1="DAV:"
     * xmlns:lp3="http://subversion.tigris.org/xmlns/dav/"
     * xmlns:lp2="http://apache.org/dav/props/
     *   xmlns:m="http://apache.org/dav/xmlns"
     *   xmlns:C="svn:
     */
    /* xml namespaces for various svn-isms */
    public static final Namespace NS_SVN = Namespace.getNamespace("S", "http://subversion.tigris.org/xmlns/svn/");
    public static final Namespace NS_SVN_DAV = Namespace.getNamespace("V", "http://subversion.tigris.org/xmlns/dav/");
    public static final Namespace NS_APACHE_DAV = Namespace.getNamespace("m", "http://apache.org/dav/xmlns");
    public static final Namespace NS_CUSTOM = Namespace.getNamespace("C", "http://subversion.tigris.org/xmlns/custom/");
    /* 'special' URI prefix */
    static final String SPECIAL_PREFIX = "!svn";
    /* DAV property names */
    static final String VCC = "version-controlled-configuration";
    static final String RT = "resourcetype";
    static final String BRP = "baseline-relative-path";
    static final String UUID = "repository-uuid";
    static final String BC = "baseline-collection";
    static final String VN = "version-name";
    static final String MD5 = "md5-checksum";
    static final String CI = "checked-in";
    static final String BASELINE_RELATIVE_PATH = "baseline-relative-path";

    /* SVN params */
    static final String PARAM_PEGREV = "p";
    static final String PARAM_WORKINGREV = "r";
    
    /* properties */
    static final String PROP_DEADPROP_COUNT = "deadprop-count";
}
